package com.wowangz.cms.common.service;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.wowangz.cms.syscore.SqlSessionContainer;
import com.wowangz.cms.syscore.exception.ServiceException;
import com.wowangz.cms.syscore.service.BaseService;



/**
 * 功能：公共放大镜服务层
 *
 * @author yoyo
 *
 */
public class CommonMagnifierService extends BaseService{

	public long findResultCount(String countKey, HashMap map)throws ServiceException {
		Long countNum = this.getSqlSession().selectOne("CommonMagnifier." + countKey, map);
		return countNum;
	}

	public List findResultList(String pageKey, HashMap map)throws ServiceException {
		List list = this.getSqlSession().selectList("CommonMagnifier." + pageKey, map);
		return list;
	}


}
